﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InfoPick.Lib.Entity
{
    //TDMIU命令返回的类型
    public class TDMIU
    {
        //单板类型
        //public BoardType BoardType { get; set; }
        public string BoardType { get; set; }

        //板组号
        public int BoradNum { get; set; }

        //负载类型
        public string LoadType { get; set; }

        //Tid起始值
        public int StartTid { get; set; }

        //Tid终止值
        public int EndTid { get; set; }


        public static TDMIU Create(string[] row)
        {
            try
            {
                TDMIU obj = new TDMIU();
                obj.BoardType = row[0];
                obj.BoradNum = int.Parse(row[1]);
                obj.LoadType = row[2];
                obj.StartTid = int.Parse(row[3]);
                obj.EndTid = int.Parse(row[4]);
                return obj;
            }
            catch (Exception e)
            {
                return null;
            }
        }
    }
}
